<?php 
header("Content-type:text/html;charset=utf-8");
include_once 'sys/conn/conn.php';
$sql = mysql_query("select * from tb_friend");
while ($rel = mysql_fetch_array($sql)){
	$link[] = $rel;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>中科智远--友情链接</title>
<link rel="stylesheet" href="style/style.css" type="text/css" />
<link rel="stylesheet" href="style/select2css.css" type="text/css" />
</head>

<body>
	<?php include_once 'header.php';?>
    <div class="menu">
    	<ul>
        	<li class="home"><a href="index.php" target="_self">首页</a></li>
            <li class="aboutZY"><a href="aboutZY.php" target="_self">关于智远</a>
			<li class="news"><a href="news.php" target="_self">新闻中心</a></li>
            <li class="products"><a href="spjk.php" target="_self">产品中心</a></li>
			<li class="kf"><a href="services.php" target="_self">客服中心</a></li>
            <li class="joinUs"><a href="joinUs.php" target="_self">加入我们</a></li>
        </ul>
        <div class="language">
            <div id="uboxstyle">
                <select name="language" id="language">
                    <option value="English">English</option>
                    <option value="简体中文" selected="selected">简体中文</option>
                </select>
            </div>
            <script type="text/javascript" src="js/select2css.js"></script>
        </div>
    </div>
    <div class="normal"><img src="images/link.jpg" width="938" height="106" alt="友情链接" /></div>
    <div class="shadow"><img src="images/shadow.jpg" width="946" height="22" alt="" /></div>
    <div class="middle">
    	<div class="left">
        	<div class="list_tit">友情链接</div>
            <div class="list">
            	<p><img src="images/contact.jpg" width="156" height="99" alt="联系方式" /></p>
            </div>
            <div class="list_bot"><img src="images/list_bot.png" width="182" height="24" alt="list_bot" /></div>
        </div>
        <div class="right">
        	<div class="content_addr">所在位置：友情链接</div>
            <div class="content">
            	<div class="link">
                    <strong>友情链接</strong>
                    <ul>
                    <?php 
                    	foreach ($link as $url){
                    ?>
                    	<li><a href="<?php echo $url["urls"];?>" target="_blank"><?php echo $url["company"];?></a></li>
                    <?php }?>
                    </ul>
                </div>
            </div>
            <div class="content_bot"><img src="images/content_bot.png" width="756" height="10" alt="content_bot" /></div>
        </div>
    </div>
    <?php include_once 'footer.php';?>
</body>
</html>